//1313. 解压缩编码列表
//思路：vector尾插

#include <vector>
using namespace std;

class Solution {
public:
    vector<int> decompressRLElist(vector<int>& nums) {
        vector<int> ret;
        for(int i = 0; i < nums.size(); i += 2)
            while(nums[i-1]--) ret.push_back(nums[i]);

        return ret;
    }
};